;(function($){
/**
 * jqGrid extension for Tyon business 
 * Dormin Men
**/ 
$.jgrid.extend({
	isEditing:function(){
		var is=$(this).getEditingIndexs();
		return is.length>0;
	},
	getEditingIndexs:function(){
		var indexs = [];
		var ids = this.getDataIDs();
		this.each(function(){
		var $t=this;
		$.each(ids,function(index,id){
			var data=$($t).getRowData(id);

			$.each(data,function(i){
				var d=$($t).getCell(id,i);
				if($($.jgrid.htmlDecode(d)).hasClass('editable')){
					indexs.push(id);
				}
			});
			
		})
		})
		return $.unique(indexs);
	
	}
});

})(jQuery);